package ferp.core.log;

/**
 * User: olegs
 * Date: 7/4/12 10:33 AM
 */
public abstract class Log
{
  public static final String TAG = "FERP";

  public static void debug(String tag, String msg) {log.d(tag, msg);}
  public static void error(String tag, Throwable t) {log.e(tag, t);}

  protected static Log log;

  protected abstract void d(String tag, String msg);
  protected abstract void e(String tag, Throwable t);

  static
  {
    try
    {
      log = (Log)Class.forName("ferp.android.log.Alog").newInstance();
    }
    catch (Exception e)
    {
      /* nothing to do */
    }
  }
}
